﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenApi
{
	/// <summary>
	/// 开放接口设置属性
	/// </summary>
	public class OpenApiSettingAttribute : Attribute
	{
		/// <summary>
		/// 资源公开度
		/// </summary>
		public ResourceOpenness Openness { get; set; }

		/// <summary>
		/// 用户表示参数
		/// </summary>
		public string UserIdParameter { get; set; }

		/// <summary>
		/// 初始化OpenApiSetting
		/// </summary>
		public OpenApiSettingAttribute()
		{
			this.Openness = ResourceOpenness.Public;
			this.UserIdParameter = "uid";
		}
	}
}
